function colChartByDataColor_B(_fields,Name_,data,title,chartWin){
	// alert(isc.echoAll(chartWin));
	chartWin.removeMembers([0]);
	var chartColors = ["c4c4de","cdceaf","eac6c8","e0e09a","cdebaf","e2c9ab","e7494a","38d141","5653ea","da1cd8","e0e437","43e2dd","343436",
						"F78608","FFFF00","4BF20D","0D9FF2","FE6E7C","19FBA9","FBBE9D","A4D3F4","B3A2B0","650D0D","8000FF","E11E80","D4F7F6"];
	var colListGrid = isc.ListGrid.create({
		width: 0,
		height: 0,
		autoFetchData: false,
		visilibity: "hidden",
		fields:_fields,
		chartConstructor:"FusionChart", 
		updateChart : function (fieldName, props) {
			if (props) this.chartProps = props;
			if (this.lastChart) this.lastChart.destroy();
			this.lastChart = this.chartData(Name_, fieldName, null, this.chartProps);
			this.lastChart.setWidth("100%");
			this.lastChart.setHeight("100%");
			chartWin.addMember(this.lastChart)
		}
	});
	
	// var _rowData = [record];
	// MainLineGrid.setData(_rowData);
	// MainLineGrid.updateChart(_fieldName,{chartType: "Line", title: "", chartProperties: {formatNumberScale:'0',showValues:1, baseFontSize:'12'}});
	
	colListGrid.setData(data); 
	colListGrid.updateChart(null, {chartType: "Pie",title:title , chartProperties: {showValues:1,formatNumberScale:'0', baseFontSize:'12'},dataColors:chartColors});
 };
//cccc
function colChartByDataColor_L(_fields,Name_,data,title,chartWin){
	// alert(isc.echoAll(chartWin));
	chartWin.removeMembers([0]);
	var chartColors = ["c4c4de","cdceaf","eac6c8","e0e09a","cdebaf","e2c9ab","e7494a","38d141","5653ea","da1cd8","e0e437","43e2dd","343436",
						"F78608","FFFF00","4BF20D","0D9FF2","FE6E7C","19FBA9","FBBE9D","A4D3F4","B3A2B0","650D0D","8000FF","E11E80","D4F7F6"];
	var colListGrid = isc.ListGrid.create({
		width: 0,
		height: 0,
		autoFetchData: false,
		visilibity: "hidden",
		fields:_fields,
		chartConstructor:"FusionChart", 
		updateChart : function (fieldName, props) {
			if (props) this.chartProps = props;
			if (this.lastChart) this.lastChart.destroy();
			this.lastChart = this.chartData(Name_, fieldName, null, this.chartProps);
			this.lastChart.setWidth("100%");
			this.lastChart.setHeight("100%");
			chartWin.addMember(this.lastChart)
		}
	});
	
	// var _rowData = [record];
	// MainLineGrid.setData(_rowData);
	// MainLineGrid.updateChart(_fieldName,{chartType: "Line", title: "", chartProperties: {formatNumberScale:'0',showValues:1, baseFontSize:'12'}});
	
	colListGrid.setData(data); 
	colListGrid.updateChart(null, {chartType: "Line",title:title , chartProperties: {showValues:1,formatNumberScale:'0', baseFontSize:'12'},dataColors:chartColors});
 };
 
 
function colChartByDataColor(Name_,itemName,data,title,chartWin){
	chartWin.removeMembers([0]);
	
	var chartColors = ["c4c4de","cdceaf","eac6c8","e0e09a","cdebaf","e2c9ab","e7494a","38d141","5653ea","da1cd8","e0e437","43e2dd","343436",
						"F78608","FFFF00","4BF20D","0D9FF2","FE6E7C","19FBA9","FBBE9D","A4D3F4","B3A2B0","650D0D","8000FF","E11E80","D4F7F6"];
	var colListGrid = isc.ListGrid.create({
		width: 0,
		height: 0,
		autoFetchData: false,
		visilibity: "hidden",
		fields:[
			{name:Name_,title:Name_},
			{name:itemName,title:title}
		],
		chartConstructor:"FusionChart", 
		updateChart : function (fieldName, props) {
			if (props) this.chartProps = props;
			if (this.lastChart) this.lastChart.destroy();
			this.lastChart = this.chartData(Name_, fieldName, null, this.chartProps);
			this.lastChart.setWidth("100%");
			this.lastChart.setHeight("100%");
			chartWin.addMember(this.lastChart)
		}
	});	
	colListGrid.setData(data); 
	colListGrid.updateChart(null, {chartType: "Column",title:title , chartProperties: {showValues:1,formatNumberScale:'0', baseFontSize:'12'},dataColors:chartColors});
};